var arr = [1,2,3,4];
arr.forEach(function(item,index,arr){
    console.log(index);
    console.log(item);
    console.log(arr);
})
